package com.minimalist.lindi.service;

import com.minimalist.common.config.mybatis.bo.PageResp;
import com.minimalist.common.entity.lindi.po.LindiTradeApplicationCredit;
import com.minimalist.common.entity.lindi.vo.tradeapplicationcredit.LindiTradeApplicationCreditQueryVO;
import com.minimalist.common.entity.lindi.vo.tradeapplicationcredit.LindiTradeApplicationCreditVO;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 林地指标交易平台_交易申请征信 服务层。
 *
 * @author 11987
 * @since 2025-06-04
 */
public interface LindiTradeApplicationCreditService extends IService<LindiTradeApplicationCredit> {

    /**
     * 添加交易申请征信
     *
     * @param tradeApplicationCreditVO 交易申请征信VO
     */
    void addTradeApplicationCredit(LindiTradeApplicationCreditVO tradeApplicationCreditVO);

    /**
     * 根据ID删除交易申请征信
     *
     * @param tradeApplicationCreditId 交易申请征信ID
     */
    void deleteTradeApplicationCreditByTradeApplicationCreditId(Long tradeApplicationCreditId);

    /**
     * 根据ID更新交易申请征信
     *
     * @param tradeApplicationCreditVO 交易申请征信VO
     */
    void updateTradeApplicationCreditByTradeApplicationCreditId(
            LindiTradeApplicationCreditVO tradeApplicationCreditVO);

    /**
     * 分页查询交易申请征信列表
     *
     * @param queryVO 查询条件
     * @return 分页结果
     */
    PageResp<LindiTradeApplicationCreditVO> getPageTradeApplicationCreditList(
            LindiTradeApplicationCreditQueryVO queryVO);

    /**
     * 根据ID查询交易申请征信
     *
     * @param tradeApplicationCreditId 交易申请征信ID
     * @return 交易申请征信VO
     */
    LindiTradeApplicationCreditVO getTradeApplicationCreditByTradeApplicationCreditId(
            Long tradeApplicationCreditId);

    /**
     * 根据交易申请ID查询交易申请付款凭证列表
     *
     * @param tradeApplicationId 交易申请ID
     * @return 交易申请付款凭证列表
     */
    List<LindiTradeApplicationCreditVO> getTradeApplicationCreditListByTradeApplicationId(
            Long tradeApplicationId);
}
